package com.msxt.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.msxt.dto.YudingxinxiEntity;
import com.msxt.view.YudingxinxiView;
import com.msxt.vo.YudingxinxiVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预定信息DAO接口
 */
public interface YudingxinxiDao extends BaseMapper<YudingxinxiEntity> {

	/**
	 * 查询预定信息VO列表
	 */
	List<YudingxinxiVO> listVO(@Param("ew") QueryWrapper<YudingxinxiEntity> wrapper);

	/**
	 * 查询单个预定信息VO
	 */
	YudingxinxiVO selectVO(@Param("ew") QueryWrapper<YudingxinxiEntity> wrapper);

	/**
	 * 查询预定信息视图列表
	 */
	List<YudingxinxiView> listView(@Param("ew") QueryWrapper<YudingxinxiEntity> wrapper);

	/**
	 * 分页查询预定信息视图列表
	 */
	IPage<YudingxinxiView> selectPageView(Page<YudingxinxiView> page,
										  @Param("ew") QueryWrapper<YudingxinxiEntity> wrapper);

	/**
	 * 查询单个预定信息视图
	 */
	YudingxinxiView selectView(@Param("ew") QueryWrapper<YudingxinxiEntity> wrapper);
}